import 'package:flutter/material.dart';
import 'package:full_display/unit/screen/screen_utility.dart';
import 'package:full_display/unit/asset_utils/asset_utils.dart';
import 'package:full_display/unit/widgets/slider/image_show.dart';

class CropImageDialog extends StatefulWidget {
  final String path;
  const CropImageDialog({super.key, required this.path});

  @override
  State<CropImageDialog> createState() => _CropImageDialogState();
}

class _CropImageDialogState extends State<CropImageDialog> {
  @override
  Widget build(BuildContext context) {
    return Stack(
      children: [
        ImageShow(
          url: widget.path,
          tapAction: (BuildContext context1) {
            Navigator.pop(context1);
            // Navigator.pop(context);
          },
        ),
        InkWell(
          child: Container(
            padding: EdgeInsets.all(20.0.W),
            child: Image.asset(
                height: 20.0.H,
                width: 20.0.W,
                AssetUtils.getAsset2Image("back")),
          ),
          onTap: () {
            Navigator.pop(context);
          },
        )
      ],
    );
  }
}
